<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>视频</title>

  <link rel="stylesheet" href="./css/video.css">

</head>

<body>

  <div class="video-box">
    <video controls src="./images/21.Guns.mkv"></video>

    <div>

      <div>
        <div>21 Guns - Green Day</div>
        <div>
          <img onclick="play()" src="./images/b08.svg" alt="">
        </div>
      </div>

    </div>

  </div>


  <script>
    let vplay = false;

    function play() {
      vplay = !vplay;
      if (vplay) {
        document.querySelector('video').play()
        return
      }
      document.querySelector('video').pause()
    }

  </script>


</body>

</html>